using System.Collections.ObjectModel;

using Sunyi.Project.WebPoint.DataAccessController;

using ActivitySystem.DataAccess;
using ActivitySystem.DataContract;

namespace ActivitySystem.DataAccessController
{
    public partial class ActivityTypeDaoController : ProvisioningDaoController<ActivityType, ActivityTypeDao>
    {
        public Collection<ActivityType> Search(string name, bool isActive, int pageIndex, int pageSize)
        {
            return dao.Search(name, isActive, pageIndex, pageSize);
        }

        public int SearchCount(string name, bool isActive)
        {
            return dao.SearchCount(name, isActive);
        }

        public ActivityType SelectByName(string name)
        {
            return dao.SelectByName(name);
        }

        public Collection<ActivityType> SelectAll()
        {
            return dao.SelectAll();
        }
    }
}